﻿<%@ Page Title="" Language="C#" MasterPageFile="~/QLVB/User/User.master" AutoEventWireup="true" CodeFile="PhieuTrinh.aspx.cs" Inherits="QLVB_User_PhieuTrinh" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">

        .style21
        {
            height: 23px;
        }
        .style22
        {
        width: 40px;
        height: 23px;
    }
        .style34
        {
            height: 23px;
        }
        .style27
    {
        width: 110px;
        height: 60px;
    }
        .style30
        {
            width: 40px;
            height: 60px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 708px; border: double;">
        <tr>
            <td class="style21" style="120px:; text-align: center;" colspan="2">
                <asp:Label ID="lblTieuDe" runat="server" Text="PHIẾU TRÌNH" 
                style="text-decoration: underline; font-weight: 700;" ForeColor="Blue"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style21" style="120px: ;">
                <asp:Label ID="lblSoThuTu" runat="server" Text="Số thứ tự:"></asp:Label>
            </td>
            <td style="300px: ;" class="style22">
                <asp:TextBox ID="txtSoThuTu" runat="server" 
                style="margin-left: 0px" MaxLength="4"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style21" style="120px: ;">
                <asp:Label ID="lblSoVanBan" runat="server" Text="Số văn bản:"></asp:Label>
            </td>
            <td style="300px: ;" class="style22">
                <asp:TextBox ID="txtSoVanBan" runat="server" 
                style="margin-left: 0px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style21" style="120px: ;">
                <asp:Label ID="lblTenVanBan" runat="server" Text="Tên văn bản:"></asp:Label>
            </td>
            <td style="300px: ;" class="style22">
                <asp:TextBox ID="txtTenVanBan" runat="server" Width="99%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style21" style="120px: ;">
                <asp:Label ID="lblNoiPhatHanh" runat="server" Text="Nơi phát hành:"></asp:Label>
            </td>
            <td style="300px: ;" class="style34" valign="top">
                <asp:ComboBox ID="cmbMaNoiPhatHanh" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="cmbMaNoiPhatHanh_SelectedIndexChanged">
                </asp:ComboBox>
                <asp:TextBox ID="txtTenDonViSoanThao" runat="server" Width="70%" 
                    BackColor="#FFFFCC" ForeColor="Red"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style21" style="120px: ;">
                <asp:Label ID="lblNgayHetHieuLuc" runat="server" SkinID=" " 
                Text="Ngày CN nhận VB:"></asp:Label>
            </td>
            <td style="300px: ;" class="style22" valign="top">
                <asp:TextBox ID="txtNgayHetHieuLuc" runat="server"></asp:TextBox>
                <asp:CalendarExtender ID="txtNgayHetHieuLuc_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="txtNgayHetHieuLuc" Format="dd/MM/yyyy">
                </asp:CalendarExtender>
            </td>
        </tr>
        <tr>
            <td class="style27" style="120px: ;">
                <asp:Label ID="lblNoiDungVanBan" runat="server" Text="Nội dung văn bản:"></asp:Label>
            </td>
            <td style="300px: ;" class="style30" valign="top">
                <asp:TextBox ID="txtNoiDungVanBan" runat="server" Width="99%" Height="50px" 
                style="text-align: left" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style21" style="120px: ;">
            </td>
            <td style="300px: ;" class="style22" valign="top">
                <asp:Button ID="btnDongY" runat="server" Text="Đồng ý" Width="100px" 
                onclick="btnDongY_Click" />
                <asp:Button ID="btnDong" runat="server" Text="Đóng" Width="100px" 
                onclick="btnDong_Click" />
            </td>
        </tr>
        <tr>
            <td class="style21" style="120px: ;">
                &nbsp;</td>
            <td style="300px: ;" class="style22" valign="top">
                <asp:GridView ID="gvDanhSachPhieuTrinh" runat="server" AllowPaging="True" 
                    AutoGenerateColumns="False" CellPadding="4" DataKeyNames="MaPhieuTrinh,SoThuTu" 
                    ForeColor="#333333" GridLines="None" 
                    onrowdeleting="gvDanhSachPhieuTrinh_RowDeleting" Width="100%" 
                    onselectedindexchanging="gvDanhSachPhieuTrinh_SelectedIndexChanging" 
                    onpageindexchanging="gvDanhSachPhieuTrinh_PageIndexChanging">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td width="200px">
                                            <asp:Label ID="lblMaPhieuTrinh_" runat="server" Text="Mã phiếu trình:"></asp:Label>
                                        </td>
                                        <td width="400px">
                                            <asp:Label ID="lblMaPhieuTrinh" runat="server" 
                                                Text='<%# Eval("MaPhieuTrinh") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="200px">
                                            <asp:Label ID="lblSoThuTu_" runat="server" Text="Số thứ tự:"></asp:Label>
                                        </td>
                                        <td width="400px">
                                            <asp:Label ID="lblSoThuTu" runat="server" Text='<%# Eval("SoThuTu") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="200px">
                                            <asp:Label ID="lblSoVanBan_" runat="server" Text="Số văn bản:"></asp:Label>
                                        </td>
                                        <td width="400px">
                                            <asp:Label ID="lblSoVanBan" runat="server" Text='<%# Eval("SoVanBan") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="200px">
                                            <asp:Label ID="lblTenVanBan_" runat="server" Text="Tên văn bản:"></asp:Label>
                                        </td>
                                        <td width="400px">
                                            <asp:Label ID="lblTenVanBan" runat="server" Text='<%# Eval("TenVanBan") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="200px">
                                            <asp:Label ID="lblNgayHetHieuLuc_" runat="server" Text="Ngày CN nhận VB:"></asp:Label>
                                        </td>
                                        <td width="400px">
                                            <asp:Label ID="lblNgayHetHieuLuc" runat="server" 
                                                Text='<%# Eval("NgayHetHieuLuc") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="200px">
                                            <asp:Label ID="lblMaNoiPhatHanh_" runat="server" Text="Mã nơi phát hành:"></asp:Label>
                                        </td>
                                        <td width="400px">
                                            <asp:Label ID="lblMaNoiPhatHanh" runat="server" 
                                                Text='<%# Eval("MaNoiPhatHanh") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="200px">
                                            <asp:Label ID="lblTenDonViSoanThao_" runat="server" 
                                                Text="Tên đơn vị soạn thảo:"></asp:Label>
                                        </td>
                                        <td width="400px">
                                            <asp:Label ID="lblTenDonViSoanThao" runat="server" 
                                                Text='<%# Eval("TenDonViSoanThao") %>'></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:CommandField SelectText="In phiếu trình" ShowSelectButton="True" />
                        <asp:CommandField ShowDeleteButton="True" />
                    </Columns>
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>

